package com.dstation.service.interf;

import com.dstation.domain.DynamicInfo;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author Eastward
 * @date 2022/5/19 - 10:28
 */
public interface IDynamicService {
    boolean addDynamicInfo(DynamicInfo dynamicInfo);

    List<DynamicInfo> findAllDynamicInfo();

    boolean dropDynamicInfo(long dynamicId);

    DynamicInfo queryDynamicInfoByDynamicId(long dynamicId);

    boolean addUserPraiseDynamicInfo(long dynamicId, Long userId, Timestamp createDate);

    boolean dropUserPraiseDynamicInfo(long dynamicId, Long userId);

    long findPraiseNumByDynamicId(long dynamicId);

    int findUserIsPraiseByDynamicId(long dynamicId, long userId);

    boolean alterDynamicInfo(DynamicInfo dynamic);
}
